package com.space.school.domain;

import java.math.BigDecimal;
import java.util.Date;

public class ProductInfo {
    private int product_id;

    /** 名字. */
    private String product_name;

    /** 单价. */
    private Integer product_price;

    /** 库存. */
    private Integer product_stock;

    /** 描述. */
    private String product_description;

    /** 小图. */
    private String product_icon;

    /** 状态, 0正常 1下架. 默认是枚举上架 */
    private Integer product_status ;

    /** 类目编号. */
    private Integer category_type;

    private Date create_time;

    private Date update_time;

//   类目名称
    private String category_name;

    public ProductInfo() {
    }

    public ProductInfo(int product_id, String product_name, Integer product_price, Integer product_stock, String product_description, String product_icon, Integer product_status, Integer category_type, Date create_time, Date update_time, String category_name) {
        this.product_id = product_id;
        this.product_name = product_name;
        this.product_price = product_price;
        this.product_stock = product_stock;
        this.product_description = product_description;
        this.product_icon = product_icon;
        this.product_status = product_status;
        this.category_type = category_type;
        this.create_time = create_time;
        this.update_time = update_time;
        this.category_name = category_name;
    }

    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public Integer getProduct_price() {
        return product_price;
    }

    public void setProduct_price(Integer product_price) {
        this.product_price = product_price;
    }

    public Integer getProduct_stock() {
        return product_stock;
    }

    public void setProduct_stock(Integer product_stock) {
        this.product_stock = product_stock;
    }

    public String getProduct_description() {
        return product_description;
    }

    public void setProduct_description(String product_description) {
        this.product_description = product_description;
    }

    public String getProduct_icon() {
        return product_icon;
    }

    public void setProduct_icon(String product_icon) {
        this.product_icon = product_icon;
    }

    public Integer getProduct_status() {
        return product_status;
    }

    public void setProduct_status(Integer product_status) {
        this.product_status = product_status;
    }

    public Integer getCategory_type() {
        return category_type;
    }

    public void setCategory_type(Integer category_type) {
        this.category_type = category_type;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    @Override
    public String toString() {
        return "ProductInfo{" +
                "product_id=" + product_id +
                ", product_name='" + product_name + '\'' +
                ", product_price=" + product_price +
                ", product_stock=" + product_stock +
                ", product_description='" + product_description + '\'' +
                ", product_icon='" + product_icon + '\'' +
                ", product_status=" + product_status +
                ", category_type=" + category_type +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", category_name='" + category_name + '\'' +
                '}';
    }
}
